import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Pdd2 {
    //https://www.nowcoder.com/exam/test/78239377/detail?pid=23354036&examPageSource=Company&testCallback=https%3A%2F%2Fwww.nowcoder.com%2Fexam%2Fcompany%3FcurrentTab%3Dhostest%26jobId%3D100%26selectStatus%3D0%26tagIds%3D639&testclass=%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int T = scanner.nextInt(); // 测试用例的组数
        int[] arr = new int[T];
        int[] arr1 = new int[T];
        for(int i = 0;i<T ;i++){
            arr[i] = scanner.nextInt();
            arr1[i] = arr[i];
        }
        Arrays.sort(arr1);
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < T; i++) {
            map.put(arr1[i],i+1);
            Integer integer = map.get(arr[i]);
            System.out.println(integer);
        }
    }
}
